package com.esms.service.impl;

import com.esms.dao.StatusMapper;
import com.esms.po.Status;
import com.esms.service.IEmployeeStatusServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class EmployeeStatusServerImpl implements IEmployeeStatusServer {
	@Autowired
    private StatusMapper statusMapper = null;


	@Override
	public List<Status> getEmployeeStsusList(String type) {
		List<Status> listStat = new ArrayList<Status>();
		if("1".equals(type)){
			listStat = statusMapper.selectStatusS();
		}else if("2".equals(type)){
			listStat = statusMapper.selectStatusX();
		}else if("3".equals(type)){
			listStat = statusMapper.selectStatusT();
		}else {

		}
		return listStat;
	}


}
